[@main]
#IF
checknamelist deva.txt
#ACT
goto @canspawn
break

#IF
checkjob taoist
checklevel 38
#ACT
goto @main1
break

#IF
checkjob taoist
#ACT
goto @main1.1
break

#ELSEACT
goto @notforyou

[@notforyou]
Hi, i am the keeper of the Holy Deva, i can take your\
summon holy deva book and turn it into an amulet for you\
to cast your pet, sadly though, this doesnt concern you!\
<exit/@exit>


[@main1]
#IF
checkitem SummonHolyDeva 1
#ACT
take SummonHolyDeva 1
addnamelist deva.txt
goto @canspawn
#ELSEACT
goto @main2

[@main1.1]
Hello <$USERNAME>, when your level 38 and come to me with\
a SummonHolyDeva book, i am able to take this from you and\
grant you with the ability to summon your own deva! what\
makes this unique is that it can thunderbolt and cast a closeup\
attack and allows for two summoned pets!\
<exit/@exit>

[@main2]
Hi, i am the keeper of the Holy Deva, i am able to\
grant you a Deva as a pet if you provide me with the\
Holy Deva spell book, if you can do this, i can give\
you an amulet for you to cast at any time to summon\
the deva, bring me the book and the deva is yours!\
<exit/@exit>

[@canspawn]
Hello <$USERNAME>, would you like a holy deva amulet?\
\
\
<Yes please/@spawnnow> | <No Thanks/@exit> | <Buy Bundle/@givebundle>

[@spawnnow]
#ACT
give HolyDevaAmulet 1
BREAK

[@givebundle]
To buy an amulet bundle it will cost you <10,000> gold!\
\  \
<Buy now!/@buy1> || <No Thanks/@main2>

[@buy1]
#IF
checkgold 10000
#act
take gold 10000
give DevaAmuletBund 1
goto @bought
#elseact
goto @errorgold

[@bought]
Enjoy\
<exit/@exit>


[@errorgold]
Not enough gold\
<exit/@exit>

